package com.example.mapper;

import com.example.entity.MaterialEntity;
import com.example.entity.MaterialSearchEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MaterialMapper {

    public List<MaterialEntity> findAll();
    public List<MaterialEntity> materialSearch(MaterialSearchEntity materialSearch);
    int materialSearchCount(MaterialSearchEntity materialSearch);
    boolean update(MaterialEntity materialEntity);

    boolean insert(MaterialEntity materialEntity);
    boolean delete(int id);



}
